package com.qijian.maindata.domain;

import com.qijian.common.annotation.JoinField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 辅助属性值对象 bi_product_attribute_item
 *
 * @author qijian
 * @date 2022-01-13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("bi_product_attribute_item")
public class ProductAttributeItem extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 物料id */
    @Excel(name = "物料id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "物料id")
    @JoinField
    private Long itemId;

    /** 物料name */
    @Excel(name = "物料name")
    @ApiModelProperty(value = "物料name")
    private String itemName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @ApiModelProperty(value = "物料编码")
    private String itemCode;

    /** 辅助属性id */
    @Excel(name = "辅助属性id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "辅助属性id")
    private Long attrId;

    /** 辅助属性name */
    @Excel(name = "辅助属性name")
    @ApiModelProperty(value = "辅助属性name")
    private String attrName;

    /** 是否禁用 */
    @Excel(name = "是否禁用")
    @ApiModelProperty(value = "是否禁用")
    private Boolean isDisabled;

    /** 是否预先插入 */
    @Excel(name = "是否预先插入")
    @ApiModelProperty(value = "是否预先插入")
    private Boolean isPreInsert;

}
